﻿#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->centralWidget()->setStyleSheet("QWidget{background-color:#ffffff}");
    dockWidget = new FoldabledDockWidget(this, FoldRight, QStringLiteral("折叠窗口"));
    dockWidget->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
    dockWidget->setFeatures(QDockWidget::AllDockWidgetFeatures);
    this->addDockWidget(Qt::RightDockWidgetArea, dockWidget);
}

MainWindow::~MainWindow()
{
    delete ui;
}
